
namespace JTZY.Model.Goods.Dto
{
    /// <summary>
    /// 商品表查询对象
    /// </summary>
    public class CorecmsgoodsQueryDto : PagerInfo 
    {
        public string Bn { get; set; }
        public int? GoodsCategoryId { get; set; }
        public bool? IsMarketable { get; set; }
    }

    /// <summary>
    /// 商品表输入输出对象
    /// </summary>
    public class CorecmsgoodsDto
    {
        [ExcelColumn(Name = "商品ID")]
        [ExcelColumnName("商品ID")]
        [ExcelIgnore(true)]
        
        public int? Id { get; set; }

        [ExcelColumn(Name = "商品编码")]
        [ExcelColumnName("商品编码")]
        public string Bn { get; set; }

        [ExcelColumn(Name = "商品名称")]
        [ExcelColumnName("商品名称")]
        public string Name { get; set; }
        [ExcelColumn(Name = "商品分类")]
        [ExcelColumnName("商品分类")]
        public int? GoodsCategoryId { get; set; }
        [ExcelIgnore(true)]
        public string Brief { get; set; }

        [ExcelIgnore(true)]
        public string Image { get; set; }

        [ExcelIgnore(true)]
        public string Images { get; set; }

        [ExcelIgnore(true)]
        public string Video { get; set; }

        [ExcelIgnore(true)]
        public int? ProductsDistributionType { get; set; }

      

        [ExcelColumn(Name = "商品类别")]
        [ExcelColumnName("商品类别")]
        public int? GoodsTypeId { get; set; }

        [ExcelIgnore(true)]
        public string GoodsSkuIds { get; set; }

        [ExcelIgnore(true)]
        public string GoodsParamsIds { get; set; }

        [Required(ErrorMessage = "品牌不能为空")]
        [ExcelColumn(Name = "品牌")]
        [ExcelColumnName("品牌")]
        public int BrandId { get; set; }

        [ExcelColumn(Name = "是否虚拟商品")]
        [ExcelColumnName("是否虚拟商品")]
        public bool IsNomalVirtual { get; set; }

        [ExcelColumn(Name = "是否上架")]
        [ExcelColumnName("是否上架")]
        public bool IsMarketable { get; set; }

        [ExcelIgnore(true)]
        public string Unit { get; set; }

        [ExcelIgnore(true)]
        public string Intro { get; set; }

        [ExcelIgnore(true)]
        public string SpesDesc { get; set; }

        [ExcelIgnore(true)]
        public string Parameters { get; set; }

        [ExcelIgnore(true)]
        public int? CommentsCount { get; set; }

        [ExcelIgnore(true)]
        public int? ViewCount { get; set; }

        [ExcelIgnore(true)]
        public int? BuyCount { get; set; }

        [ExcelIgnore(true)]
        public DateTime? Uptime { get; set; }

        [ExcelIgnore(true)]
        public DateTime? Downtime { get; set; }

        [ExcelIgnore(true)]
        public int? Sort { get; set; }

        [ExcelIgnore(true)]
        public string LabelIds { get; set; }

        [ExcelIgnore(true)]
        public string NewSpec { get; set; }

        [ExcelIgnore(true)]
        public int? OpenSpec { get; set; }

        [ExcelIgnore(true)]
        public DateTime? CreateTime { get; set; }

        [ExcelIgnore(true)]
        public DateTime? UpdateTime { get; set; }

        [ExcelIgnore(true)]
        public bool IsRecommend { get; set; }

        [ExcelIgnore(true)]
        public bool IsHot { get; set; }

        [ExcelIgnore(true)]
        public bool IsDel { get; set; }

        [ExcelColumn(Name = "初始销量")]
        [ExcelColumnName("初始销量")]
        public int? InitialSales { get; set; }
        [ExcelIgnore]
        public int? GoodsFirstCategoryId { get; set; }
        [ExcelIgnore]
        public int? GoodsSecondCategoryId { get; set; }

        [ExcelIgnore]
        public List<CorecmsproductsDto> CorecmsproductsNav { get; set; }
        [ExcelIgnore(true)]
        public string ProductsDistributionTypeLabel { get; set; }
    }
}